Godot Admob Integration
- prerequisits:
- AdMob account
- published app
- install android build template
- set SDK path in editor settings
- enable “use custom build” in export settings
- enable permissions “Access Network State” and “Internet” in export settings
- install Shin-Nils admob plugin
- download and unzip
- copy folder admob-lib to godot project folder (res://)
- contents of admob-plugin go into res://android/plugins/
- add admob node to project (only one!)
- add app to AdMob account and create a add (banner, interstitial, rewarded)
- app AD into manifest XML (android/build/AndroidManifest.xml) in section “application”:
- put ad unit ID into respective admob-plugin setting in Godot (Banner ID, Interstitial ID, Rewarded ID)
- deactivate “Is Real” in Godot during testing!
- in code load ad with $AdMob.load_banner/_interstitial/_rewarded() and use $AdMob.show_banner/_interstitial/_rewarded()
-
when exporting make sure that plugin “Godot Ad Mob” is enabled
- https://www.youtube.com/watch?v=0a6EvlNgLL0
- https://github.com/Shin-NiL/Godot-Android-Admob-Plugin/releases